'use strict';

import { Application } from 'egg';

export default function(app: Application) {
  const { STRING, INTEGER} = app.Sequelize;
  const About = app.model.define('about', {
    about_id: { type: INTEGER, unique: true,  primaryKey: true },
    address: { type: STRING, allowNull: true },
    email:{ type: STRING, allowNull: true},
    qrcode:{type:STRING},
    record:{type:STRING},
    create_time: { type: STRING},
    phone: { type: STRING},
    about_vedio: { type: STRING},
    about_img: { type: STRING},
    about_icon: { type: STRING},
    about_content:{type:STRING},
    technical:{type:STRING},
    name:{type:STRING},
  },{
    tableName:'about',
    timestamps: false,
  });
  

  return class extends About {
    static associate() {
      //app.model.User.hasMany(app.model.Post, { as: 'posts' });
    }
  }
}